extends "../yingxianzuo-1/yingxianzuo-1.gd"

func _extInit():
	._extInit()
	lv = 2
	addSkill("每{cd}秒对血量最高的敌人造成[航空*1]的技能伤害，并赋予6层<灼烧>", "陨落", "yingxianzuo2", 8)

func _castCdSkill(id):
	._castCdSkill(id)
	if id == "yingxianzuo2":
		yingxianzuo2()

func yingxianzuo2():
	var cha = getFirstCha(1, "sortByHpDesc")
	if cha != null:
		azurHurtChara(cha, att.air*1, sys.HurtType.WEAPON, sys.AtkType.SKILL, "陨落")
		if not cha.isDeath:
			castBuff(cha, buff.b_zhuoShao.new(6))
